import BasicLayout from "../layouts/BasicLayout";
import {createRoutes} from "../utils/core";
import Dashboard from './Dashboard';
import DataEnter from './Ant/DataEnter';
import DataDisplay from './Ant/DataDisplay';
import List from './Ant/List';
import Table from './Ant/Table';
import Feedback from './Ant/Feedback';
import Button from "./UI/Button";
import Icon from "./UI/Icon";
import Flex from "./UI/Flex"
import Html from "./UI/Html";
import _3DImage from "./UI/3DImage";
import EventStore from "./ExternalFun/EventStore";

const routesConfig = (app) => ([
  {
    path: '/',
    title: '系统中心',
    component: BasicLayout,
    indexRoute: '/dashboard',
    childRoutes: [
      Dashboard(app),
      DataEnter(app),
      DataDisplay(app),
      List(app),
      Table(app),
      Feedback(app),
      Button(app),
      Icon(app),
      Flex(app),
      Html(app),
      EventStore(app),
      _3DImage(app),
    ],
  }
])



export default app => createRoutes(app, routesConfig);
